<?php
require_once(dirname(__FILE__)."/../include/db_mysql.php");

function get_industryName( $industryId )
{
	$sql = new SqlClass;
	//连接数据库
	$sql->connect();
	//执行sql语句

	$sql_command = "SELECT * FROM industry where industryId='$industryId';";

	$r = $sql->exec_sql( $sql_command );
	$row = mysql_fetch_array($r);

	if( $row == '' )  //说明industry表中不存在该记录
	{
		$sql->close();
		return '';
	}

	//说明industry表中存在该记录
	$sql->close();
	return $row['industryName'];

}

?>